﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageStudent.aspx.cs" Inherits="Admin1_Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <script type="text/javascript">
      

    </script>
    <form id="form1" runat="server">
    <div class="m_box">
      <div class="m_head">关键用户信息</div>
      <div class="m_middle">
        <div class="m_m_c"><span>查询条件</span></div>
        <div class="m_m_c">
            <asp:DropDownList ID="DropDownList1" runat="server" Height="23px" Width="82px">
                <asp:ListItem Value="USER_NAME">姓名</asp:ListItem>
                <asp:ListItem Value="COMPANY">公司</asp:ListItem>
            </asp:DropDownList>
          </div>  
        <div class="m_m_c">
            <asp:TextBox ID="TextBox1" runat="server" Width="88px" Height="16px"></asp:TextBox>
          </div>  
        <div class="m_m_c">
            <asp:ImageButton ID="ImageButton1" runat="server" 
                ImageUrl="~/image/search.gif" onclick="ImageButton1_Click" />
          </div>  
      </div>
      <div class="m_content">
          <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
              CellPadding="15" GridLines="Horizontal" 
              Height="120%" Width="1497px" ForeColor="Black" 
              onpageindexchanging="GridView1_PageIndexChanging" 
              onrowdeleting="GridView1_RowDeleting" BackColor="White" 
              BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
              AllowPaging="True" 
              onrowcancelingedit="GridView1_RowCancelingEdit" onrowediting="GridView1_RowEditing" 
              onrowupdating="GridView1_RowUpdating">
              <Columns>
                  <asp:TemplateField HeaderText="选择">
                      <ItemTemplate>
                          <asp:CheckBox ID="CheckBox1" runat="server" />
                      </ItemTemplate>    
                      <ItemStyle/>                 
                  </asp:TemplateField>
                   <asp:TemplateField HeaderText="ID" Visible="false">
                      <ItemTemplate>
                          <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                      </ItemTemplate>
                      <EditItemTemplate><asp:TextBox ID="TextBox1"  CssClass="tb" Width="40px" runat="server" Text='<%# Bind("ID") %>'></asp:TextBox></EditItemTemplate>       
                      <ItemStyle/>
                  </asp:TemplateField>
                  <asp:TemplateField HeaderText="用户姓名">
                      <ItemTemplate>
                          <asp:Label ID="Label6" runat="server" Text='<%# Bind("USER_NAME") %>'></asp:Label>
                      </ItemTemplate>
                      <EditItemTemplate><asp:TextBox ID="TextBox6"  CssClass="tb" Width="150px" runat="server" Text='<%# Bind("USER_NAME") %>'></asp:TextBox></EditItemTemplate>       
                      <ItemStyle/>
                  </asp:TemplateField>
                   <asp:TemplateField HeaderText="登录名称">
                      <ItemTemplate>
                          <asp:Label ID="Label2" runat="server" Text='<%# Bind("LOGIN_NAME") %>'></asp:Label>
                      </ItemTemplate>
                      <EditItemTemplate><asp:TextBox ID="TextBox2"  CssClass="tb" Width="150px" runat="server" Text='<%# Bind("LOGIN_NAME") %>'></asp:TextBox></EditItemTemplate>       
                      <ItemStyle/>
                  </asp:TemplateField>
                  <asp:TemplateField HeaderText="密码">
                      <ItemTemplate>
                          <asp:Label ID="Label3" runat="server" Text='<%# Bind("LOGIN_PASS") %>'></asp:Label>
                      </ItemTemplate>
                      <EditItemTemplate><asp:TextBox ID="TextBox3"   CssClass="tb" Width="150px" runat="server" Text='<%# Bind("LOGIN_PASS") %>'></asp:TextBox></EditItemTemplate>   
                      <ItemStyle/>
                  </asp:TemplateField>
                  <asp:TemplateField HeaderText="公司名称">
                      <ItemTemplate>
                          <asp:Label ID="Label4" runat="server" Text='<%# Bind("COMPANY") %>'></asp:Label>
                      </ItemTemplate>
                      <EditItemTemplate><asp:TextBox ID="TextBox4"  CssClass="tb"  Width="150px" runat="server" Text='<%# Bind("COMPANY") %>'></asp:TextBox></EditItemTemplate>
                  <ItemStyle/>
                  </asp:TemplateField>
                  <asp:TemplateField HeaderText="职务">
                      <ItemTemplate>
                          <asp:Label ID="Label5" runat="server" Text='<%# Bind("DEPARTMENT") %>'></asp:Label>
                      </ItemTemplate>
                      <EditItemTemplate><asp:TextBox ID="TextBox5"  CssClass="tb" Width="150px" runat="server" Text='<%# Bind("DEPARTMENT") %>'></asp:TextBox></EditItemTemplate>
                      <ItemStyle/>
                  </asp:TemplateField>
                  <asp:TemplateField HeaderText="绑定试卷号">
                        <ItemTemplate>
                          <asp:Label ID="Label7" runat="server" Text='<%# Bind("PAPERID") %>'></asp:Label>
                          
                      </ItemTemplate>
                     
                      <ItemStyle/>

                  </asp:TemplateField>
                  <asp:TemplateField HeaderText="编辑  删除" ShowHeader="False">
                      <ItemTemplate>
                          <asp:Button ID="Button1" runat="server" CausesValidation="False" 
                              CommandName="Edit" Text="编辑" />
                          &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" 
                              CommandName="Delete" Text="删除"  OnClientClick="return confirm('您确认删除该记录吗?')"/>
                      </ItemTemplate>
                      <EditItemTemplate>
                          <asp:Button ID="Button1" runat="server" CausesValidation="True" 
                              CommandName="Update" Text="更新" />
                          &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" 
                              CommandName="Cancel" Text="取消" />
                      </EditItemTemplate>
                  </asp:TemplateField>
              </Columns>
              <RowStyle HorizontalAlign="Center" /> 
              <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
              <HeaderStyle BackColor="#3a9cff" Font-Bold="True" ForeColor="White" />
              <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
              <RowStyle BackColor="White" ForeColor="#333333" />
              <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
          </asp:GridView>
      </div>
   </div>
    </form>
</body>
</html>
